home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / SegLoad.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  1.9 KB  |  99 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        SegLoad.p
  3.  
  4.      Contains:    Segment Loader Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT SegLoad;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __SEGLOAD__}
  30. {$SETC __SEGLOAD__ := 1}
  31.  
  32. {$I+}
  33. {$SETC SegLoadIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46. CONST
  47.     appOpen                        = 0;                            {Open the Document (s)}
  48.     appPrint                    = 1;                            {Print the Document (s)}
  49.  
  50.  
  51. TYPE
  52.     AppFile = RECORD
  53.         vRefNum:                INTEGER;
  54.         fType:                    OSType;
  55.         versNum:                INTEGER;                                {versNum in high byte}
  56.         fName:                    Str255;
  57.     END;
  58.  
  59. {
  60.     Because PowerPC applications don’t have segments,
  61.     UnloadSeg is unsupported for PowerPC.
  62. }
  63. {$IFC GENERATING68K }
  64.  
  65. PROCEDURE UnloadSeg(routineAddr: UNIV Ptr);
  66.     {$IFC NOT GENERATINGCFM}
  67.     INLINE $A9F1;
  68.     {$ENDC}
  69. {$ELSEC}
  70. {$ENDC}
  71. {$IFC NOT GENERATINGCFM }
  72.  
  73. PROCEDURE CountAppFiles(VAR message: INTEGER; VAR count: INTEGER);
  74. PROCEDURE GetAppFiles(index: INTEGER; VAR theFile: AppFile);
  75. PROCEDURE ClrAppFiles(index: INTEGER);
  76. PROCEDURE GetAppParms(VAR apName: Str255; VAR apRefNum: INTEGER; VAR apParam: Handle);
  77.     {$IFC NOT GENERATINGCFM}
  78.     INLINE $A9F5;
  79.     {$ENDC}
  80. {$ENDC}
  81. {$IFC OLDROUTINELOCATIONS }
  82.  
  83. PROCEDURE ExitToShell;
  84.     {$IFC NOT GENERATINGCFM}
  85.     INLINE $A9F4;
  86.     {$ENDC}
  87. {$ENDC}
  88.  
  89. {$ALIGN RESET}
  90. {$POP}
  91.  
  92. {$SETC UsingIncludes := SegLoadIncludes}
  93.  
  94. {$ENDC} {__SEGLOAD__}
  95.  
  96. {$IFC NOT UsingIncludes}
  97.  END.
  98. {$ENDC}
  99.